require.config({
    // baseUrl: "mod",

    shim: {
        "js01": {
            deps: [],
            exports: "JS01",
            init: function () {
                this.JS01.add = function (a, b) {
                    return a + b;
                };

                return this.JS01;
            }
        },
        "js03": {
            deps: [],
            exports: "JS03"
        }
    },

    paths: {
        "jquery": "http://code.jquery.com/jquery-3.3.1",
        "module01": "mod/module01",
        "module02": "mod/module02",
        "js01": "../js/js01",
        "js03": "../js/js03"
    }
});

require(['module02', 'jquery', "js01", "js03"], function (module02, jq, js01, js03) {
    console.log(jq.now());
    console.log(module02.add(3, 5, 10));

    js01.foo();
    js03.cat();

    console.log(js01.add(3, 5));
});
